package io.gitee.dqcer.mcdull.uac.provider.web.car.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.gitee.dqcer.mcdull.uac.provider.common.annotation.Excel;
import io.gitee.dqcer.mcdull.uac.provider.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 积分记录对象 car_points
 * 
 * @author ruoyi
 * @date 2023-12-10
 */
public class CarPoints extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分记录id，主键，自增，整型 */
    private Long pointsId;

    /** 所属用户 */
    @Excel(name = "所属用户")
    private Long userId;

    /** 积分变动类型 */
    @Excel(name = "积分变动类型")
    private String transactionType;

    /** 积分变动金额，正数表示增加，负数表示减少 */
    @Excel(name = "积分变动金额，正数表示增加，负数表示减少")
    private Long transactionAmount;

    /** 积分余额 */
    @Excel(name = "积分余额")
    private Long pointsBalance;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setPointsId(Long pointsId) 
    {
        this.pointsId = pointsId;
    }

    public Long getPointsId() 
    {
        return pointsId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTransactionType(String transactionType) 
    {
        this.transactionType = transactionType;
    }

    public String getTransactionType() 
    {
        return transactionType;
    }
    public void setTransactionAmount(Long transactionAmount) 
    {
        this.transactionAmount = transactionAmount;
    }

    public Long getTransactionAmount() 
    {
        return transactionAmount;
    }
    public void setPointsBalance(Long pointsBalance) 
    {
        this.pointsBalance = pointsBalance;
    }

    public Long getPointsBalance() 
    {
        return pointsBalance;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("pointsId", getPointsId())
            .append("userId", getUserId())
            .append("transactionType", getTransactionType())
            .append("transactionAmount", getTransactionAmount())
            .append("pointsBalance", getPointsBalance())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
